<html>
<head>
	<meta charset="UTF-8">
	<meta content="IE=edge" http-equiv="X-UA-Compatible">
	<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
	<title>3567：AABB</title>
	<!-- css -->
	<link href="../css/base.min.css" rel="stylesheet">
	<link href="../css/project.min.css" rel="stylesheet">
	
	<!-- favicon -->
	<!-- ... -->
</head>
<body class="page-brand">
	<header class="header header-transparent header-waterfall ui-header">
		<ul class="nav nav-list pull-left">
			<li>
				<a data-toggle="menu" href="#menu">
					<span class="icon icon-lg">menu</span>
				</a>
			</li>
		</ul>
		<a class="header-logo header-affix-hide margin-left-no margin-right-no" data-offset-top="213" data-spy="affix">AABB</a>
		<span class="header-logo header-affix margin-left-no margin-right-no" data-offset-top="213" data-spy="affix">AABB</span>
	</header>
	<nav aria-hidden="true" class="menu" id="menu" tabindex="-1">
		<div class="menu-scroll">
			<div class="menu-content">
				<a class="menu-logo" href="../index.html">BZOJ离线题库</a>
				<ul class="nav">
					<li>
						<a class="waves-attach" data-toggle="collapse" href="#problems">题目</a>
						<ul class="menu-collapse collapse in" id="problems">
							<li>
								<a class="waves-attach" href="../index.html">主页</a>
							</li>
							<li>
								<a class="waves-attach" href="../list.html">题目列表</a>
							</li>
						</ul>
					</li>
					<li>
						<a class="collapsed waves-attach" data-toggle="collapse" href="#about">关于</a>
						<ul class="menu-collapse collapse" id="about">
							<li>
								<a class="waves-attach" href="../about.html">关于此项目</a>
							</li>
						</ul>
					</li>
					
				</ul>
			</div>
		</div>
	</nav>
	<main class="content">
		<div class="content-header ui-content-header">
			<div class="container">
				<h1 class="content-heading">
                AABB                </h1>
                <p>时间限制：40s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  空间限制：64MB</p>			</div>
		</div>
		<div class="container">
			<section class="content-inner margin-top-no">
				<div class="row">
					<div class="col-lg-13 col-md-13">
						<div class="card margin-bottom-no">
							<div class="card-main">
								<div class="card-inner">
									
                                <h3>题目描述</h3><p><div style="margin: 0cm 3.5pt 0pt 5.8pt; text-indent: 21pt; line-height: 102%"><span style="font-size: medium"><span style="line-height: 102%; letter-spacing: 0.2pt">给</span><span style="line-height: 102%">定</span><span style="line-height: 102%">N</span><span style="line-height: 102%; letter-spacing: 0.2pt">个与坐标轴平行的矩</span><span style="line-height: 102%; letter-spacing: 0.15pt">形</span><span style="line-height: 102%">（<span style="letter-spacing: 0.2pt">左下角和右上角坐标用四个整</span>数</span><span style="line-height: 102%">x1,<span style="letter-spacing: 0.4pt">y</span>1,x2,<span style="letter-spacing: 0.4pt">y</span>2</span><span style="line-height: 102%; letter-spacing: 0.2pt">表</span><span style="line-height: 102%">示<span style="letter-spacing: -6.2pt">）</span>。</span><span style="line-height: 102%">定</span><span style="line-height: 102%; letter-spacing: 0.25pt">义两个矩形相</span><span style="line-height: 102%; letter-spacing: -0.1pt">交</span><span style="line-height: 102%; letter-spacing: 0.3pt">，</span><span style="line-height: 102%; letter-spacing: 0.25pt">当存在一个点同时在这两个矩形内</span><span style="line-height: 102%; letter-spacing: 0.2pt">部</span><span style="line-height: 102%">（<span style="letter-spacing: 0.25pt">不包括边</span>界<span style="letter-spacing: 0.2pt">）</span><span style="letter-spacing: -0.95pt">时</span>。</span><span style="line-height: 102%; letter-spacing: 0.25pt">注意一个矩形</span><span style="line-height: 102%">跟</span><span style="line-height: 102%">它自身也是相交<span style="letter-spacing: -0.95pt">的</span>。</span></span></div>
<div style="margin: 0.55pt 0cm 0pt 26.8pt" align="left"><span style="font-size: medium"><span style="letter-spacing: 0.45pt">现在</span>有Q<span style="letter-spacing: 0.45pt">组询</span><span style="letter-spacing: -0.1pt">问</span><span style="letter-spacing: 0.45pt">，每组询问给</span>定4<span style="letter-spacing: 0.45pt">个整</span>数<span style="letter-spacing: 0.2pt">l</span>1,&nbsp;<span style="letter-spacing: 0.35pt">r1,<span style="letter-spacing: 0.2pt">l</span>2,<span style="letter-spacing: 0.3pt">r</span><span style="letter-spacing: -0.1pt">2</span></span><span style="letter-spacing: 0.45pt">，询问有多少</span>对(i, <span style="letter-spacing: -0.95pt">&nbsp;<span style="letter-spacing: 0.6pt">j</span><span style="letter-spacing: -0.1pt">)</span></span><span style="letter-spacing: 0.45pt">，满</span>足<span style="letter-spacing: 0.2pt">l</span>1 <span style="letter-spacing: -1.3pt">&nbsp;&lt;=</span></span><span style="font-size: medium">i<span style="letter-spacing: 1pt"> &lt;=<span style="letter-spacing: 1.45pt"> <span style="letter-spacing: 0.35pt">r</span>1,</span><span style="letter-spacing: 0.2pt">l</span>2&lt;=<span style="letter-spacing: 1.45pt"> j&lt;=<span style="letter-spacing: 0.35pt">r</span>2,</span></span>且矩形i与矩形j相<span style="letter-spacing: -0.95pt">交。</span></span></div></p><hr/><h3>输入格式</h3><p><p class="MsoNormal" align="left" style="margin: 0cm 0cm 0pt 26.8pt; text-align: left; mso-layout-grid-align: none"><font size="3"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">第</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">1</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">行一个整数</span><span lang="EN-US" style="letter-spacing: -0.95pt; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt; mso-font-width: 103%"><font face="Times New Roman">N</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">。</span><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><o:p></o:p></span></font></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 26.8pt; text-align: left; mso-layout-grid-align: none"><font size="3"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">接下来</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">N</font></span><span style="font-family: 宋体; letter-spacing: -0.1pt; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">行</span><span style="font-family: 宋体; letter-spacing: 0.1pt; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">，</span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">每行</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">4</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">个整数</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">x1,<span style="letter-spacing: 1.65pt"> </span>y1,<span style="letter-spacing: 1.35pt"> </span>x2,<span style="letter-spacing: 1.4pt"> </span><span style="mso-font-width: 102%">y<span style="letter-spacing: -0.1pt">2</span></span></font></span><span style="font-family: 宋体; letter-spacing: 0.1pt; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">，</span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">第</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt; mso-font-width: 116%"><font face="Times New Roman">(i+1<span style="letter-spacing: 0.05pt">)</span></font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">行的整数表示第</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">i</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">个矩形的左下角和右上</span></font><font size="3"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">角坐<span style="letter-spacing: -0.95pt">标</span>。</span></font><font size="3"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">接下来</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">1</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">行一个整数</span><span lang="EN-US" style="letter-spacing: -0.95pt; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt; mso-font-width: 107%"><font face="Times New Roman">Q</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">。</span><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><o:p></o:p></span></font></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 26.8pt; text-align: left; mso-layout-grid-align: none"><font size="3"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">接下来</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">Q</font></span><span style="font-family: 宋体; letter-spacing: -0.1pt; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">行</span><span style="font-family: 宋体; letter-spacing: 0.1pt; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">，</span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">每行</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">4</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">个整数</span><span lang="EN-US" style="letter-spacing: 0.2pt; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">l</font></span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">1,<span style="letter-spacing: 1.85pt"> </span><span style="letter-spacing: 0.35pt; mso-font-width: 112%">r</span><span style="mso-font-width: 112%">1,<span style="letter-spacing: 0.65pt"> </span></span><span style="letter-spacing: 0.2pt">l</span>2,<span style="letter-spacing: 1.35pt"> </span><span style="letter-spacing: 0.3pt; mso-font-width: 135%">r</span><span style="letter-spacing: -0.1pt">2</span></font></span><span style="font-family: 宋体; letter-spacing: 0.1pt; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">，</span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">表示一个询<span style="letter-spacing: -0.95pt">问</span>。为了体现询问的在线性，输入</span></font><font size="3"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">的</span><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">l1, r1, l2, r2</span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">都已经加密，你需要将这些数异或</span><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">lastans</span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">得到真实的输入，其中</span><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">lastans</span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">为上次询问的答案，一开始为</span><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">0</span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">。</span></font><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p></p></p><hr/><h3>输出格式</h3><p><p class="MsoNormal" align="left" style="margin: 0cm 0cm 0pt 26.8pt; text-align: left; mso-layout-grid-align: none"><font size="3"><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt; mso-font-width: 107%"><font face="Times New Roman">Q</font></span><span style="font-family: 宋体; letter-spacing: -0.1pt; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">行</span><span style="font-family: 宋体; letter-spacing: 0.1pt; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">，</span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">每行一个整<span style="letter-spacing: -0.1pt">数</span><span style="letter-spacing: 0.1pt">，</span>第</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">i</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">行表示第</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">i</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">个询问的答<span style="letter-spacing: -0.95pt">案</span>。</span></font><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><o:p></o:p></span></p></p><hr/><h3>样例输入</h3><pre>5
1 1 3 3
2 2 4 4
3 1 4 2
1 2 4 3
1 3 2 5
5
1 5 1 5
10 10 8 8
1 3 1 5
5 3 6 4
6 0 6 0 
</pre><hr/><h3>样例输出</h3><pre>11
0
7
5
3
</pre><hr/><h3>提示</h3><p><p class="MsoNormal" align="left" style="margin: 1.05pt 0cm 0pt 26.8pt; text-align: left; mso-layout-grid-align: none"><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font size="3"><font face="Times New Roman">1<span style="letter-spacing: 0.7pt"> </span><span style="mso-font-width: 138%">&lt;=<span style="letter-spacing: -0.3pt"> </span></span>x1<span style="letter-spacing: 1.45pt"> </span><span style="mso-font-width: 138%">&lt;<span style="letter-spacing: -0.3pt"> </span></span>x2<span style="letter-spacing: 1.45pt"> </span><span style="mso-font-width: 138%">&lt;=<span style="letter-spacing: -0.3pt"> </span></span>N<span style="letter-spacing: -0.6pt"> </span>,<span style="letter-spacing: 1.4pt"> </span>1<span style="letter-spacing: 0.7pt"> </span><span style="mso-font-width: 138%">&lt;=<span style="letter-spacing: -0.3pt"> </span></span><span style="letter-spacing: 0.4pt">y</span>1<span style="letter-spacing: 0.6pt"> </span><span style="mso-font-width: 138%">&lt;<span style="letter-spacing: -0.3pt"> </span></span><span style="letter-spacing: 0.4pt">y</span>2<span style="letter-spacing: 0.6pt"> </span><span style="mso-font-width: 138%">&lt;=<span style="letter-spacing: -0.3pt"> </span></span>N<span style="letter-spacing: -0.65pt"> </span>,<span style="letter-spacing: 1.4pt"> </span>1<span style="letter-spacing: 0.7pt"> </span><span style="mso-font-width: 138%">&lt;=<span style="letter-spacing: -0.3pt"> </span></span><span style="letter-spacing: 0.2pt">l</span>1<span style="letter-spacing: 0.9pt"> </span><span style="mso-font-width: 120%">&lt;=<span style="letter-spacing: 2.3pt"> </span><span style="letter-spacing: 0.35pt">r</span>1<span style="letter-spacing: -0.4pt"> </span>&lt;=<span style="letter-spacing: 2.3pt"> </span></span>N<span style="letter-spacing: -0.6pt"> </span>,<span style="letter-spacing: 1.4pt"> </span>1<span style="letter-spacing: 0.7pt"> </span><span style="mso-font-width: 138%">&lt;=<span style="letter-spacing: -0.3pt"> </span></span><span style="letter-spacing: 0.2pt">l</span>2<span style="letter-spacing: 0.9pt"> </span><span style="mso-font-width: 120%">&lt;=<span style="letter-spacing: 2.3pt"> </span><span style="letter-spacing: 0.35pt">r</span>2<span style="letter-spacing: -0.4pt"> </span></span><span style="mso-font-width: 138%">&lt;=</span><o:p></o:p></font></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 5.8pt; text-align: left; mso-layout-grid-align: none"><font size="3"><span lang="EN-US" style="letter-spacing: 0.2pt; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt; mso-font-width: 111%"><font face="Times New Roman">N</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">。</span><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><o:p></o:p></span></font></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 26.8pt; text-align: left; mso-layout-grid-align: none"><font size="3"><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">N<span style="letter-spacing: 2.25pt"> </span><span style="mso-font-width: 138%">&lt;=<span style="letter-spacing: -0.7pt"> </span></span>30000,<span style="letter-spacing: 0.9pt"> </span>Q<span style="letter-spacing: 1pt"> </span><span style="mso-font-width: 138%">&lt;=<span style="letter-spacing: -0.7pt"> </span></span>3000<span style="letter-spacing: -0.95pt">0</span></font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">。</span><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><o:p></o:p></span></font></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 26.8pt; text-align: left; mso-layout-grid-align: none"><font size="3"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">由于是</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt; mso-font-width: 116%"><font face="Times New Roman">OJ</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">上的题<span style="letter-spacing: -0.1pt">目</span><span style="letter-spacing: 0.1pt">，</span>只有</span><span lang="EN-US" style="mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt"><font face="Times New Roman">1</font></span><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">组最大数据和若干组较小的数<span style="letter-spacing: -0.95pt">据</span>。</span></font><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><font size="3"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: SimSun; mso-hansi-font-family: SimSun; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt">解密后的样例输入如下：</span><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><o:p></o:p></span></font></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">5<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">1 1 3 3<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">2 2 4 4<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">3 1 4 2<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">1 2 4 3<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">1 3 2 5<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">5<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">1 5 1 5<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">1 1 3 3<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">1 3 1 5<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">2 4 1 3<o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0.1pt 0cm 0pt 28.25pt; text-align: left; mso-layout-grid-align: none; mso-para-margin-top: .1pt; mso-para-margin-right: 0cm; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 2.69gd"><span lang="EN-US" style="font-family: SimSun; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: SimSun; mso-font-kerning: 0pt"><font size="3">3 5 3 5<o:p></o:p></font></span></p>
<p></p></p><hr/><h3>题目来源</h3><p>By wangyisong1996
</p>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				
			</section>
		</div>
	</main>

	<div class="fbtn-container">
		<div class="fbtn-inner">
			<a class="fbtn fbtn-lg fbtn-brand-accent waves-attach waves-circle waves-light waves-effect" data-toggle="dropdown" aria-expanded="true"><span class="fbtn-text fbtn-text-left">Menu</span><span class="fbtn-ori icon">apps</span><span class="fbtn-sub icon">close</span></a>
			<div class="fbtn-dropup">
				<a class="fbtn fbtn-brand waves-attach waves-circle waves-light waves-effect" href="../list.html" target="_self"><span class="fbtn-text fbtn-text-left">题目列表</span><span class="icon">menu</span></a>
				<a class="fbtn fbtn-green waves-attach waves-circle waves-effect" href="../index.html" target="_self"><span class="fbtn-text fbtn-text-left">返回主页</span><span class="icon">home</span></a>
				<a class="fbtn waves-attach waves-circle waves-effect" href="http://www.lydsy.com/JudgeOnline/submitpage.php?id=3567" target="_blank"><span class="fbtn-text fbtn-text-left">提交代码</span><span class="icon">send</span></a>
				<a class="fbtn fbtn-orange waves-attach waves-circle waves-effect" href="http://www.lydsy.com/JudgeOnline/wttl/wttl.php?pid=3567" target="_blank"><span class="fbtn-text fbtn-text-left">试题讨论</span><span class="icon">chat</span></a>
				
			</div>
		</div>
	</div>

	<!-- js -->
	<script src="../js/jquery.min.js"></script>
	<script src="../js/base.min.js"></script>
	<script src="../js/project.min.js"></script>
</body>
</html>